<?php
declare (strict_types=1);

namespace app\model;

use think\Model;

/**
 * @mixin Model
 */
class Category extends Model
{
    //
    public function materials()
    {
        return $this->hasMany(Materials::class, 'category_id', 'id');
    }
}
